11 Answers · A constant char array is good enough for you so you go with, const char *array = tmp.c_str(); · Or you need to modify the char array ... ... <看更多>
Search
Search
11 Answers · A constant char array is good enough for you so you go with, const char *array = tmp.c_str(); · Or you need to modify the char array ... ... <看更多>
If you're trying to use a method of a in the global scope, that's doomed to failure. You can only call methods within functions. If all you want is a char ... ... <看更多>